package com.dhq.topic;

import java.util.ArrayList;
import java.util.List;

public class TestList {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<String>();
        list.add("1");
        list.add("2");
        List<String> strings = list.subList(0, 1);


        System.out.println(strings);
    }
}
